namespace FluentDataContract.Attributes
{
    using System;

    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false, Inherited = true)]
    public sealed class DataContractAttribute : Attribute
    {
        public Type ObjectContractType { get; private set; }

        public DataContractAttribute(Type objectContractType)
        {
            ObjectContractType = objectContractType;
        }
    }
}